<%--
  Created by IntelliJ IDEA.
  User: 张帆
  Date: 2022/6/28
  Time: 14:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>档案修改页面</title>
   <%-- <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/bootstrap.js" type="text/javascript"></script>--%>
</head>
<body>
    <form action="profileservlet?method=updateProfile" method="post" enctype="multipart/form-data">
        <<table border="1">
            <tr>
                <td>编号</td>
                <td>${updateInfo.id}</td>
                <input type="hidden" name="id" value="${updateInfo.id}">
            </tr>
            <tr>
                <td>姓名</td>
                <td>
                    <input type="text" name="name"  value="${updateInfo.name}">
                </td>
            </tr>
            <tr>
                <td>生日</td>
                <td>
                    <input name="birthday" type="date" value="${updateInfo.birthday}">
                </td>
            </tr>
            <tr>
                <td>性别</td>
                <td>
                    <select name="gender" id="" value=" ${updateInfo.gender}">
                        <option value="男">男</option>
                        <option value="女">女</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>职业</td>
                <td>
                    <input name="career" type="text" value="${updateInfo.career}">
                </td>
            </tr>
            <tr>
                <td>住所</td>
                <td>
                    <input name="address" type="text" value="${updateInfo.address}">
                </td>
            </tr>
            <tr>
                <td>电话</td>
                <td>
                    <input name="mobile" type="text" value="${updateInfo.mobile}">
                </td>
            </tr>
            <tr>
                <td>头像</td>
                <td>
                    <input name="picture" type="file" value="${updateInfo.picture}">
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" value="修改">
                    <button type="button" id="btn">返回</button>
                </td>
            </tr>
        </table>
    </form>


<script type="text/javascript">
    $("#btn").click(function () {
        $(location).attr("href","profileservlet?method=listProfile&pageNum=1");
    });

</script>
</body>
</html>
